package com.qf.business.user.listener;

import com.qf.commons.event.apply.consumer.EventHandler;
import com.qf.commons.event.apply.consumer.IEventHandler;
import com.qf.commons.event.entity.QphoneMessage;

/**
 * description: 红包回退的监听
 * author: Ken
 * 公众号：Java架构栈
 */
@EventHandler("red_back")
public class RedBackListener implements IEventHandler {

    @Override
    public void handler(Object eventContent, QphoneMessage qphoneMessage) {
        //获得红包id eventContent
        //根据红包id 查询红包的状态 - 1
        // 0 -> 需要回退 -> 2
        //生成一个回退的明细
    }
}
